import os
import sys

Import("env")
env = env.Clone()

env.Tool("qt4")
env.EnableQt4Modules(["QtCore"])

if sys.platform == "win32" :
    env.AppendUnique(CPPDEFINES=["BABELPOD_BUILD_DLL"])
lib = env.SharedLibrary("babelpod", Glob("*.cpp")+Glob("*.c"))
env.Install("$PREFIX/lib" if sys.platform != "win32" else "$PREFIX", lib)
Return("lib")
